package com.hyts.infodb.file;

import com.hyts.infodb.enums.SystemConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.WebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;


@SpringBootApplication
@EntityScan(SystemConfiguration.DEFAULT_GLOBAL_PACKAGE+".file")
public class FileApplication implements WebServerFactoryCustomizer<TomcatServletWebServerFactory>{

    public static void main(String[] args) {
        SpringApplication.run(FileApplication.class, args);
    }


    @Override
    public void customize(TomcatServletWebServerFactory factory) {
        //factory.setPort(8881);
        // TODO Auto-generated method stub
    }

}
